'use strict';
exports = module.exports = function($scope) {
    $scope.x1 = 1
    $scope.x2 = 10
    $scope.x3 = 1
    $scope.x4 = "{               leaf:62, name: 'app.exp.exp#1#', title:\"\" },"
    $scope.x5 = true
    var do2 = function(i){
        if( $scope.x5 && i < 10 ) return "0"+i
        return i
    }
    $scope.doloop = function(){
        var r = ""
        for( var i=$scope.x1;i<$scope.x2;i+=$scope.x3){
            r += $scope.x4.replace("#1#",do2(i)) + "\r\n"
        }
        $scope.r1 = r
    }
    $scope.doloop()
}